﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Common/Site.Master" AutoEventWireup="true" CodeBehind="AllNews.aspx.cs" Inherits="FortuneHeaven.Web.Pages.News.AllNews" %>
<%@ Register  Src="~/Controls/PageLeft.ascx" TagName="left" TagPrefix="uc"  %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
     <link rel="Stylesheet" type="text/css" href="<%=Page.ResolveClientUrl("~/Content/CSS/public.css")%>" />
    <link rel="Stylesheet" type="text/css" href="<%=Page.ResolveClientUrl("~/Content/CSS/news.css")%>" />
    <style>
    .jpshow {
    border: 2px solid #AAE3FF;
    height: 160px;
    margin-top:10px;
}
.jpshow p {
    color: #016A9F;
    height: 30px;
    line-height: 30px;
    text-indent: 10px;
}
    </style>
    <script>
        $("document").ready(function () {

            slide('#productshow', '#productslide', '#productimg', '#productimg2');
           
        });

        function slide(main, parent, div1, div2) {
            var speed = 100;

            var tab = $(parent);
            var tab1 = $(div1);
            var tab2 = $(div2);
            tab2.html(tab1.html());

            function Marquee() {
                if (tab.position().left <= -tab1.width() + 1) {
                    tab.css("left", "0px");
                }
                else {
                    tab.css("left", tab.position().left - 1 + "px");
                }
            }

            var MyMar = setInterval(Marquee, speed);
            tab.mouseover(function () { clearInterval(MyMar) });
            tab.mouseout(function () { MyMar = setInterval(Marquee, speed) });
        }

    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="main">
   <uc:left ID="ucLeft" runat="server"></uc:left>
        <div class="mright">
        <%-------------------当前页---------------%>
           <div class="cutpage">
              <span class="left weight">新闻</span>
              <span class="right">首页 > <em>新闻</em></span>
              <div class="clear"></div>
           </div>
           <div class="hotnews">
              <div class="hotstit">
                 <span class="name">新闻公告</span>
                 <span class="more"></span>
              </div>
              <div class="hotscon">
                 <div class="hotcleft">
                   <p><a href="javascript://"><img src="../../Content/Image/Main/Npic.jpg" /></a></p>
                   <h1><a href="javascript://">图片新闻标题</a></h1>
                 </div>
                 <div class="hotcright">
                    <ul>
                      <asp:Repeater ID="rpNews" runat="server">
                        <ItemTemplate>
                            <li><span class="name"><a href='NewsDetail.aspx?newsid=<%# Eval("ID")%>'  ><%# GetTitle(Eval("Title"))%>
                            
                            </a><%# Container.ItemIndex <3?"<img src=\"../../Content/Image/Main/icon3.jpg\" />":""%></span><a href="javascript://" class="time"><%# Eval("Time", "{0:MM-dd}")%></a></li> 
                        </ItemTemplate>
                      </asp:Repeater>
                       <%--<li><a href="javascript://" class="name">席蔡英文两面不讨好 权威受挑战</a><a href="javascript://" class="time">09-09</a></li>--%>
                    </ul>
                    <div style=" text-align:right; margin-top:7px;"><a href="NewsList.aspx" style=";text-decoration:underline">查看更多</a></div>
                 </div>
                 
                 <div class="clear"></div>
                 
              </div>
           </div>
        <%-------------------新闻公告---------------%>
        <div class="publicnews">
          <div class="pnewtop">
             <div class="newsone">
                <span class="name weight">游戏公告</span>
                 <span class="more"></span>
             </div>
             <div class="newstwo">
                <span class="name weight">最新赛事</span>
                 <span class="more"></span>
             </div>
          </div>
          <div class="pnewmid">
               <div class="newsone">
                  <p><a href="javascript://"><img  src="../../Content/Image/Main/Npic-05.jpg" /></a></p>
                  <ul>
                        <asp:Repeater ID="rpGame" runat="server">
                        <ItemTemplate>
                            <li><span class="name"><a  href='GameNewsDetail.aspx?newsid=<%# Eval("ID")%>' ><%# GetTitle(Eval("Title"))%></a><%# Container.ItemIndex <3?"<img src=\"../../Content/Image/Main/icon3.jpg\" />":""%></span><a href="javascript://" class="time"><%# Eval("Time", "{0:MM-dd}")%></a></li>
                        </ItemTemplate>
                        </asp:Repeater>
                    </ul>
                    <div style=" text-align:right; margin-top:7px;"><a href="GameNewsList.aspx" style=";text-decoration:underline">查看更多</a></div>
               </div>
               <div class="newstwo">
                  <p><a href="javascript://"><img src="../../Content/Image/Main/Npic-06.jpg" /></a></p>
                  <ul>
                       <asp:Repeater ID="rpComp" runat="server">
                        <ItemTemplate>
                            <li><span class="name"><a  href='CompetitionDetail.aspx?newsid=<%# Eval("ID")%>' ><%# GetTitle(Eval("Title"))%></a><%# Container.ItemIndex <3?"<img src=\"../../Content/Image/Main/icon3.jpg\" />":""%></span><a href="javascript://" class="time"><%# Eval("Time", "{0:MM-dd}")%></a></li>
                        </ItemTemplate>
                        </asp:Repeater>
                    </ul>
                    <div style=" text-align:right; margin-top:7px;"><a href="CompetitionList.aspx" style=";text-decoration:underline">查看更多</a></div>
               </div>
               <div class="clear"></div>
          </div>
          <div class="pnewbot"></div>    
        </div>
                     <div class="jpshow" style="">
                    <p class="weight">
                        奖品展示</p>
                     <div id="productshow" style=" position:relative; height:114px; overflow:hidden; border: 1px solid #DBE9F9">
                          <div id="productslide" style=" position:absolute;  width:1448px;" >
                              <div style=" padding:15px 0px; width: 724px; float: left;" id="productimg"
                                  class="slidediv">
                                  <a href="javascript://">
                                      <img src="../../Content/Image/Main/pic-15.jpg" /></a> <a href="javascript://">
                                          <img src="../../Content/Image/Main/pic-16.jpg" /></a> <a href="javascript://">
                                              <img src="../../Content/Image/Main/pic-17.jpg" /></a>
                                                 <a href="javascript://">
                                      <img src="../../Content/Image/Main/pic-15.jpg" /></a> <a href="javascript://">
                                          <img src="../../Content/Image/Main/pic-16.jpg" /></a> <a href="javascript://">
                                              <img src="../../Content/Image/Main/pic-17.jpg" /></a>
                              </div>
                            <div style=" padding:15px 0px; width: 724px; float: left;" id="productimg2"></div>
                        </div>
                    </div>
                </div>
        </div>
        <div class="clear">
        </div>
    </div>
</asp:Content>